package com.snowballtech.retry;

import lombok.*;

/**
 * Description: 重试机制配置
 *
 * @Author: genezhao
 * @Date: 2018-04-16
 */
@Setter
@Getter
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class Configurantion {

    /**
     * 最大重试次数,默认3次
     */
    private int maxAttempts = 3;

    /**
     * 重试间隔时间，默认1000ms
     */
    private int backOffPeriod = 1000;

}
